﻿// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)

using System;
using System.Windows.Forms;
using ICSharpCode.SharpDevelop.Dom;
using ICSharpCode.SharpDevelop.Project;

namespace ICSharpCode.SharpDevelop.Gui.ObjectBrowser
{
	public class DefaultObjectNodeBuilder : IObjectNodeBuilder
	{
		public bool CanBuildObjectTree(IClass c)
		{
			return true;
		}

		public TreeNode AddObjectNode(ExtTreeView objectBrowser, IProject project, IClass c)
		{
			ObjectNode cNode = new ObjectNode(project, c);
			cNode.AddTo(objectBrowser);
			return cNode;
		}
	}
}
